﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleTaskManager.Domain.Entities
{
    /// <summary>
    /// The association class between Users and Skills
    /// </summary>
    public class UserSkill
    {
        /// <summary>
        /// ID field
        /// </summary>
        public int UserSkillID { get; set; }
        
        /// <summary>
        /// The user who has the skill
        /// </summary>
        public int UserID { get; set; }
        public virtual User User { get; set; }

        /// <summary>
        /// The skill
        /// </summary>
        public int SkillID { get; set; }
        public virtual Skill Skill { get; set; }

        /// <summary>
        /// A number between 0 and 5, representing the skill level of the user
        /// </summary>
        public int Rating { get; set; }

        /// <summary>
        /// A field which can contain approval information
        /// </summary>
        public int AcceptedByID { get; set; }
        public virtual User AcceptedBy { get; set; }
    }
}
